<%--
  Created by IntelliJ IDEA.
  User: xianfei
  Date: 15-9-16
  Time: 下午4:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
    <title>度假屋交换</title>
    <mystyle>
        <link href="/public/css/sureChange.css" type="text/css" rel="stylesheet"/>
    </mystyle>
</head>
<body>
<input type="hidden" id="userInfoGuid" value="4e824a86-b3a4-4f6f-af2a-3f17699d9703">

<div class="main">
    <div class="mTop">
        <h2>确认交换</h2>
    </div>

    <div class="mBottom">
        <div class="mBLeft">
            <h3>我的度假屋</h3>
            <input type="hidden" id="userExchangePoolDTOGuid" value="${userExchangePoolDTO.guid}">

            <div class="mBLeftBottom">
                <img src="/public/image/${userExchangePoolDTO.houseInfoDTO.imageGuids[0]}" width="336" height="236">
                <h4>${userExchangePoolDTO.houseInfoDTO.name}</h4>

                <p>周次：${userExchangePoolDTO.houseWeekName}</p>

                <p>点数：${userExchangePoolDTO.houseWeekPrice}</p>
            </div>
        </div>

        <div class="mBCenter">
            <p>
                差价：<span>${differ}元</span><br/>
                服务费：<span>${fee}元</span>
            </p>
            <img src="/public/img/sureArroow.png" width="200" height="43">
        </div>

        <div class="mBRight">
            <h3>交换的度假屋</h3>
            <input type="hidden" id="exchangePoolDTOGuid" value="${exchangePoolDTO.guid}">

            <div class="mBRightBottom">
                <img src="/public/image/${exchangePoolDTO.houseInfoDTO.imageGuids[0]}" width="336" height="236">
                <h4>${exchangePoolDTO.houseInfoDTO.name}</h4>

                <p>周次：${exchangePoolDTO.houseWeekName}</p>

                <p>点数：${exchangePoolDTO.houseWeekPrice}</p>
            </div>
        </div>
    </div>

    <div>
        说明：交换后用于交换的度假屋将不可用，您将得到交换后的度假屋的预定权利，并且不可再次用其进行交换。
    </div>
    <div class="sureBtn">
        <button class="send" onclick="doExchange()">交换</button>
    </div>

</div>
<myscript>
    <script>
        function doExchange() {
            var exchangePoolDTOGuid = $("#exchangePoolDTOGuid").val();
            var userExchangePoolDTOGuid = $("#userExchangePoolDTOGuid").val();
            location.href = "/exchange/do_exchange/" + userExchangePoolDTOGuid + "/" + exchangePoolDTOGuid;
        }
    </script>
</myscript>
</body>
</html>